//
//  IntegralExchangeViewController.h
//  CPICApp
//
//  Created by sinosoft on 13-3-12.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ASIHTTPRequest.h"
#import "MBProgressHUD.h"
#import "EGORefreshTableHeaderView.h"
#import "SinaWeibo.h"
#import "SinaWeiboRequest.h"
#import <TencentOpenAPI/TencentOAuth.h>

@interface IntegralExchangeViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,EGORefreshTableHeaderDelegate,SinaWeiboDelegate, SinaWeiboRequestDelegate,TencentSessionDelegate>
{
    UITableView *TableViewExchange;
    BOOL showProgress;
    MBProgressHUD* progress;
    NSMutableArray *arrData;
    NSString *giftId;
    NSString *giftName;
    NSString *giftintegral;
    
    NSInteger ExchangeIntegral;
    NSInteger ExchangeNum;
    NSString *ExchangeGiftId;
    
    NSInteger IpageNo;
    EGORefreshTableHeaderView *_refreshHeaderView;
    BOOL _reloading;
    
    
    BOOL isImage;
    BOOL isContent;
    BOOL bindingQQ;//YES 表示已经绑定的了,NO表示还没绑定
    //sinaweibo
    NSDictionary *userInfo;
    NSArray *statuses;
    NSString *postStatusText;
    NSString *postImageStatusText;
    //sinaweibo
    
    //qq
    TencentOAuth* _tencentOAuth;
    NSMutableArray* _permissions;
    NSString *QQAccessToken;
    NSString *QQopenId;
    //qq
    
    NSString *strShareContent;//要分享的内容
    NSString *strInsuranceTitle;//要分享的标题
    NSString  *ImgUrl;//要分享的图片地址
    UIImage *imageDown;//要分享的图片
}
@property(nonatomic,retain)UITextField *txtCurrentIntegral;
@property(nonatomic,retain)UITextField *txtLockingIntegral;

@end
